home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 142
/
Volume 142 Oct 17 2011 - Damaged.iso
/
Games
/
operation-graduates.swf
/
scripts
/
frame_41
/
DoAction_16.as
< prev
next >
Wrap
Text File
|
2011-10-17
|
668b
|
31 lines
function hullFire()
{
playSound("sound.gun1",(theHull._x - 300) / 6);
var i = 0;
while(i < 5)
{
if(this.upgrades[i] == 1)
{
p = pBullets.attachMovie("peashot" + (i + 1),"bullet" + pBulletsCount,pBulletsCount++);
p._x = this._x + eval("this.spot" + (i + 1)).x;
p._y = this._y + eval("this.spot" + (i + 1)).y;
}
i++;
}
this.ship.ha.gotoAndPlay(2);
this.firing = true;
this.firingCountdown = 4;
}
function bulletExecute()
{
for(tb in pBullets)
{
p = pBullets[tb];
p._y -= 12;
if(p._y < 0)
{
p.removeMovieClip();
}
}
}